package com.example.controller.aboutStudent;

import com.example.service.aboutStudent.StudentMoreInfoService;
import com.example.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/studentMoreInfo")
public class StudentMoreInfoController {

    @Resource
    private StudentMoreInfoService studentMoreInfoService;

    @GetMapping("/{moreId}")
    public Result getStudentMoreInfo(@PathVariable Integer moreId){
        return studentMoreInfoService.getStudentMoreInfoByMoreId(moreId);
    }
}
